package org.omg.CORBA;

/**
 * Holder class for : DefinitionKind
 * 
 * @author OpenORB Compiler
 */
final public class DefinitionKindHolder
        implements org.omg.CORBA.portable.Streamable
{
    /**
     * Internal DefinitionKind value
     */
    public org.omg.CORBA.DefinitionKind value;

    /**
     * Default constructor
     */
    public DefinitionKindHolder()
    { }

    /**
     * Constructor with value initialisation
     * @param initial the initial value
     */
    public DefinitionKindHolder(org.omg.CORBA.DefinitionKind initial)
    {
        value = initial;
    }

    /**
     * Read DefinitionKind from a marshalled stream
     * @param istream the input stream
     */
    public void _read(org.omg.CORBA.portable.InputStream istream)
    {
        value = DefinitionKindHelper.read(istream);
    }

    /**
     * Write DefinitionKind into a marshalled stream
     * @param ostream the output stream
     */
    public void _write(org.omg.CORBA.portable.OutputStream ostream)
    {
        DefinitionKindHelper.write(ostream,value);
    }

    /**
     * Return the DefinitionKind TypeCode
     * @return a TypeCode
     */
    public org.omg.CORBA.TypeCode _type()
    {
        return DefinitionKindHelper.type();
    }

}
